﻿using System;

class SumOfNNumbers
{
    static void Main()
    {
        Console.Write("Enter how many numbers you want to sum: ");
        string consoleInput = Console.ReadLine();
        int n = int.Parse(consoleInput);
        int result = 0;
        int nextNumber = 0;
        for (int i = 0; i < n; i++)
        {
            Console.Write("Please enter a number: ");
            consoleInput = Console.ReadLine();
            nextNumber = int.Parse(consoleInput);
            result += nextNumber;
        }
        Console.WriteLine("The sum of all numbers is: {0}", result);
    }
}

